﻿@model PageList<EquipmentModelListModel>
@{
    ViewBag.Title = "设备年限列表";
}
@section BodyNav
{
    > @Html.ActionLink("设备年限列表", "List", "Project")
}
@Html.ActionLink("Add", "Add", null, new { @class = "lnkBtn" })
<table class="list">
    <tr class="head">
        <th width="170">
            操作
        </th>
        <th>
            型号名称
        </th>
        <th>
            设计年限
        </th>
    </tr>
    @if (Model != null)
    {
        foreach (var t in Model)
        {
        <tr>
            <td>
                @if (UserAuthnicationHelper.CurrentUserType >= UserTypes.Operator)
                {
                    @Html.ActionLink("修改", "Edit", new { Id = @t.Id }, new { @class = "lnkEdit" })
                    @Html.ActionLink("删除", "Delete", new { Id = @t.Id }, new { @class = "lnkDel" })
                    
                }
            </td>
            <td>
                @t.Name
            </td>
            <td>@t.LimitedYear
            </td>
        </tr>
        }
    }
</table>
<div class="pager">
    @Html.Raw(Html.Pager("page", Model.PageIndex, Model.PageSize, Model.TotalCount))
</div>
